<?php include_stylesheets_for_form($form) ?>
<?php include_javascripts_for_form($form) ?>

<form action="<?php echo url_for($form->getObject()->isNew() ? '@user_register' : '@user_edit') ?>" method="post">
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          <?php if ($form->getObject()->isNew()): ?>
            <input type="submit" value="Register" />
          <?php else: ?>
            <?php echo link_to('Cancel', '@presentation') ?>
            &nbsp;<?php echo link_to('Delete', '@user_delete', array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
            <input type="submit" value="Save" />
          <?php endif ?>
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form ?>
    </tbody>
  </table>
</form>